radio-menu-item: Allow arguments to be NULL
authorMatthias Clasen <mclasen@redhat.com>
Sun, 22 Mar 2015 05:54:08 +0000 (01:54 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 22 Mar 2015 06:10:38 +0000 (02:10 -0400)
commitad05d848971c8837a9a14fd04db58e9f321ca660
tree355443786ffc8665b070af6d5bac5a6ce3e5874d
parent955aed92272b88a72617cbadca6f3010920a4f1f
radio-menu-item: Allow arguments to be NULL

Some arguments, like the group and the label of a RadioMenuItem, can be
NULL: the RadioMenuItem has all the code to deal with them. The argument
validation is too strict, though, for instance doing:

  return_if_fail (IS_RADIO_MENU_ITEM (foo))

  if (foo != NULL)
    set_foo (foo)

Which is obviously incorrect.

This commit also modifies the annotations of the API, to ensure that
language bindings do the right thing.

https://bugzilla.gnome.org/show_bug.cgi?id=671362
gtk/gtkradiomenuitem.c